import 'dart:io';

import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart' hide Action;
import 'package:image_picker/image_picker.dart';
import 'package:school_safe_teacher/resourse/app_colors.dart';


class SuggestState implements Cloneable<SuggestState> {
  Color type1TextColor;
  Color type1BgColor;
  Color type2TextColor;
  Color type2BgColor;
  int suggestType;
  final picker = ImagePicker();
  List<String> images;
  List<File> imageFiles;
  Color loginTextColor;
  Color loginBtnStartColor;
  Color loginBtnEndColor;
  String content;
  bool canSubmit;

  @override
  SuggestState clone() {
    return SuggestState()
      ..type1TextColor = type1TextColor
      ..type1BgColor = type1BgColor
      ..type2TextColor = type2TextColor
      ..type1BgColor = type2BgColor
      ..suggestType = suggestType
      ..images = images
      ..loginTextColor = loginTextColor
      ..loginBtnStartColor = loginBtnStartColor
      ..loginBtnEndColor = loginBtnEndColor
    ..imageFiles = imageFiles
    ..content = content
    ..canSubmit = canSubmit;
  }
}

SuggestState initState(Map<String, dynamic> args) {
  return SuggestState()
    ..type2TextColor = AppColors.deepTextColor
    ..type2BgColor = AppColors.MainBackColor
    ..type1TextColor = Colors.white
    ..type1BgColor = AppColors.GuideBtnTextColor
    ..loginTextColor = AppColors.cantClickTextColor
    ..loginBtnStartColor = AppColors.loginBtnColor
    ..loginBtnEndColor = AppColors.loginBtnColor
    ..suggestType = 1
    ..images = []
  ..imageFiles = []
  ..content = ""
  ..canSubmit = false;
}
